﻿namespace ufida.u9.ait.openapi
{
	using System;
	using System.Collections.Generic;
	using System.Text;
    using ufida.u9.ait.openapi.utils;
    using UFIDA.U9.CBO.Pub.Controller;
    using UFIDA.U9.SM.SO;
    using UFSoft.UBF.AopFrame;
    using UFSoft.UBF.Business;
    using UFSoft.UBF.Util.Context;

	/// <summary>
	/// SOUpdateSV partial 
	/// </summary>	
	public partial class SOUpdateSV 
	{	
		internal BaseStrategy Select()
		{
			return new SOUpdateSVImpementStrategy();	
		}		
	}

    #region  implement strategy	
    /// <summary>
    /// Impement Implement
    /// 修改时,需要同步修改SO行的立账分期子表和分期收款子表
    /// </summary>	
    internal partial class SOUpdateSVImpementStrategy : BaseStrategy
	{
		public SOUpdateSVImpementStrategy() { }

		public override object Do(object obj)
		{
			SOUpdateSV bpObj = (SOUpdateSV)obj;

            return CodeUtils.DocUpdateTemplate2<SOAITDTOData, SO>(bpObj, bpObj.Data, SOBase.UpdateDoc, true);
        }
    }

	#endregion
	
	
}